package logic.med.ui
{
	import common.core.GSprite;
	import common.manager.GScene;
	import common.manager.GUI;
	import common.manager.Resource;
	
	import fl.controls.TextInput;
	import fl.events.ComponentEvent;
	
	import flash.display.Sprite;
	
	import logic.def.Def;
	import logic.med.scene.PreScene;
	import logic.med.scene.SceneA;
	
	public class MainBtn extends GSprite
	{
		static public const NAME:String = "MainBtn";
		
		private var m_mainBtn : Sprite;
		
		public function MainBtn()
		{
			var loginClass : Class = Resource.getClass(NAME,Def.Facade)
			m_mainBtn = new loginClass;	
			
			this.addChild(m_mainBtn);
			
			GUI.add(NAME,this);
			GUI.setAlgin(NAME,GUI.ALIGN_MIDDLEX,GUI.ALIGN_BOTTOM);
		}
		
		public function destory() : void
		{
			m_mainBtn = null;
			
			GUI.close(NAME);
		}
	}
}